{% if form is defined %}
<form id="frmSearch" method="post">
	<div id="login">
        <span class="text1">Tìm kiếm :</span>
    	{{ form_widget(form.condition) }}
        <input type="submit" id="btnSearch" value="Tìm" style="width: 80px;" />
        <div class="clear"></div>
    </div>
</form>

<script type="text/javascript">
    	$("#btnSearch").click(function(){
			$("#frmSearch").attr("action", "{{ path('hui_front_end_search') }}");
			$("#frmSearch").submit();
        });
</script>
{% endif %}